home *** CD-ROM | disk | FTP | other *** search
/ PC Elektro 3 / PC-Elektro-3-cd1.bin / KBan 2.0 / KBANSRC.LZH / SRC / PROG / COMMON / FLAG.H < prev    next >
Encoding:
C/C++ Source or Header  |  1997-04-16  |  516 b   |  27 lines

  1. /*
  2.  * a header of the class FLAG
  3.  * Copyright (C) 1996, 1997 Kazutaka Hirata <khirata@jove.acs.unt.edu>
  4.  */
  5.  
  6. #ifndef _FLAG_H_
  7. #define _FLAG_H_
  8.  
  9. #include "typedef.h"
  10.  
  11. class FLAG {
  12.   uint    m_f;
  13. public:
  14.   FLAG(void)
  15.     : m_f(0) {}
  16.   FLAG(uint f)
  17.     : m_f(f) {}
  18.   FLAG(const FLAG& src)
  19.     : m_f(src.m_f) {}
  20.   // void operator=(int i) { m_f = i; }
  21.   uint    get(void) const { return m_f; }
  22.   void    set(uint f) { m_f = f; }
  23.   void    change(void) { m_f = !m_f; }
  24. };
  25.  
  26. #endif /* _FLAG_H_ */
  27.